package bean;

import java.sql.Timestamp;
import java.util.Set;

public class Article {
	private int id;
	private User user;
	private String title;
	private String content;
	private Timestamp time;
	private ArticleClass articleClass;
	private int visit;
	private Set<ArticleComment> articleComments;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getTime() {
		return time;
	}
	public void setTime(Timestamp time) {
		this.time = time;
	}

	public int getVisit() {
		return visit;
	}
	public void setVisit(int visit) {
		this.visit = visit;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public ArticleClass getArticleClass() {
		return articleClass;
	}
	public void setArticleClass(ArticleClass articleClass) {
		this.articleClass = articleClass;
	}
	public void setArticleComments(Set<ArticleComment> articleComments) {
		this.articleComments = articleComments;
	}
	public Set<ArticleComment> getArticleComments() {
		return articleComments;
	}
	
	
}
